package com.flyduck.vueshop.order.fallback;

import com.flyduck.vueshop.common.core.lang.Result;
import com.flyduck.vueshop.order.feign.RemoteOrderFeignClient;
import com.flyduck.vueshop.order.vo.RemoteOrderRespVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * <p>
 * RemoteOrderFallback
 * </p>
 *
 * @author flyduck
 * @since 2024-07-23
 */
@Slf4j
@Component
public class RemoteOrderFallback implements RemoteOrderFeignClient {

    @Override
    public Result<RemoteOrderRespVO> getOrderById(Long id) {
        log.error("获取订单失败");
        return Result.success(null);
    }
}
